package com.am.server.json;

import java.util.List;

public class JsonUtil {

	public static String strings2Json(List<String> strings){
		StringBuilder s = new StringBuilder();
		s.append('[');
		//convert output to string
		boolean first = true;
		for (String word : strings) {
		    	if(!first){
		    	    s.append(',');
		    	}
			s.append('{');
			s.append("\"value\":\"").append(word).append("\"");
			s.append('}');
			first = false;
		}
		s.append(']');
		return s.toString();
	}
}
